package com.nuedu.corejava.ch3;

import java.util.Scanner;
//正三角形
public class Triangle2 {
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		System.out.println("请输入行数");
		int row = scanner.nextInt();
		for(int i=0;i<row;i++){	
			for(int k=0;k<row-i;k++){
				System.out.print(" ");
			}
			for (int j = 0; j<i*2-1; j++) {
				System.out.print("*");
			}
			
			System.out.println();
		}
		
	}

}
